package model

const TableNameSpiderWordUser = "spider_word_user"
const PrimaryKeySpiderWordUser = "spider_word_user_id"

// SpiderWordUser 线报口令用户点击记录表
type SpiderWordUser struct {
	SpiderWordUserID int32      `gorm:"column:spider_word_user_id;primaryKey;autoIncrement:true" json:"spider_word_user_id"`
	SpiderWordID     int32      `gorm:"column:spider_word_id;not null;comment:线报口令ID" json:"spider_word_id"` // 线报口令ID
	UserID           int32      `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"`                 // 用户ID
	SpiderWord       SpiderWord `gorm:"references:SpiderWordId"`                                             // 线报口令
}

// TableName SpiderWordUser's table name
func (*SpiderWordUser) TableName() string {
	return TableNameSpiderWordUser
}

// PrimaryKey SpiderWordUser's primary key
func (*SpiderWordUser) PrimaryKey() string {
	return PrimaryKeySpiderWordUser
}
